﻿using System;
using SharpSqlAnalyzer.nodes;

namespace SharpSqlAnalyzer.stmt.snowflake
{
	// Token: 0x020000F2 RID: 242
	public class TCreateShareStmt : TCustomSqlStatement
	{
		// Token: 0x06000829 RID: 2089 RVA: 0x00301A41 File Offset: 0x002FFC41
		public void setShareName(TObjectName shareName)
		{
			this.shareName = shareName;
		}

		// Token: 0x0600082A RID: 2090 RVA: 0x00301A4A File Offset: 0x002FFC4A
		public TObjectName getShareName()
		{
			return this.shareName;
		}

		// Token: 0x0600082B RID: 2091 RVA: 0x00301A52 File Offset: 0x002FFC52
		public TCreateShareStmt(EDbVendor dbvendor) : base(dbvendor)
		{
			this.sqlstatementtype = ESqlStatementType.sstCreateShare;
		}

		// Token: 0x0600082C RID: 2092 RVA: 0x00301A68 File Offset: 0x002FFC68
		public override int doParseStatement(TCustomSqlStatement psql)
		{
			if (this.rootNode == null)
			{
				return -1;
			}
			base.doParseStatement(psql);
			TDummy tdummy = (TDummy)this.rootNode;
			this.shareName = (TObjectName)tdummy.node1;
			return 0;
		}

		// Token: 0x0600082D RID: 2093 RVA: 0x00301AA5 File Offset: 0x002FFCA5
		public override void accept(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x0600082E RID: 2094 RVA: 0x00301AB5 File Offset: 0x002FFCB5
		public override void acceptChildren(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x04001203 RID: 4611
		private TObjectName shareName;
	}
}
